<?php if ($this->_var['types'] == 1 && $this->_var['list']): ?>
<?php $_from = $this->_var['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
<a href="activitys.php?act=oneyuan_xq&id=<?php echo $this->_var['item']['sheep_id']; ?>">
	<div class="record-name-box">
		<div class="record-name">一元抢羊</div>
		<div class="record-state green"><?php if ($this->_var['item']['is_kaijiang'] == 1): ?>进行中<?php else: ?>已开奖<?php endif; ?></div>
	</div>
	<div class="record-info-box">
		<div class="record-name"><em>奖品</em><?php echo $this->_var['item']['sheep_name']; ?></div>
		<div class="record-state gray">发起时间：<?php echo $this->_var['item']['kaishi_time']; ?><span class="offer">价值：<?php echo $this->_var['item']['jiazhi']; ?>元</span></div>
		 
	</div>
</a>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<?php endif; ?>
<?php if ($this->_var['types'] == 2 && $this->_var['list']): ?>
<?php $_from = $this->_var['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
<?php if ($this->_var['item']['start'] == 1): ?>
	<a href="activitys.php?act=wantshare_fx&id=<?php echo $this->_var['item']['id']; ?>">
<?php else: ?>
	<a href="javascript:;">
<?php endif; ?>
<div class="record-name-box">
	<div class="record-name">我想要</div>
	<div class="record-state green"><?php if ($this->_var['item']['start'] == 1): ?>进行中<?php else: ?>已结束<?php endif; ?></div>
</div>
<div class="record-info-box">
	<div class="record-name"><?php echo $this->_var['item']['sheep_name']; ?></div>
	<div class="record-state gray">发起时间：<?php echo $this->_var['item']['kaishi_time']; ?><span class="offer">价值：<?php echo $this->_var['item']['jiazhi']; ?>元</span></div>
	 
</div>
</a>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<?php endif; ?>